<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<header class="header">
      <div class="container1">
        <h1 class="logo"><a href="#"></a></h1>
        
        <!--登陆了状态下-->
       <!-- <div class="navbar-right" style="display: inline-block;padding-top: 10px;">
          <div class="">
          	<ol class="list-inline">
          		<li>欢迎您,<font style="color: red;">xxx</font></li>|
          		<li><a href=""> <span class="glyphicon glyphicon-log-out">退出</span></a></li>
          	</ol>
          </div>
        </div>-->
     
        <!--还没登录状态-->
        <span id="loginbar">
        <div class="user">
          <div class="user-hover"></div>
          <div class="user-img">
            <img src="${pageContext.request.contextPath }/img/user.png" alt="#">
            <span class="arrow-bg"></span>
            <span class="arrow-font"></span>
          </div>
          <div class="user-info">
            <ul>
              <li class="login"><a href="${pageContext.request.contextPath }/login.html">立即登录</a></li>
              <li class="register">没有账号?<a href="${pageContext.request.contextPath }/register.html">立即注册</a></li>
            </ul>
          </div>
        </div>
        
      </div>
      </span>
      <%-- <script type="text/javascript" src="${pageContext.request.contextPath }/js/e3mall.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.cookie.js"></script>
	<script type="text/javascript">

		function logout() {
			
			var ticket = $.cookie("token");
			if(!ticket){
				return ;
			}
			alert(ticket);
			$.post(
				"<%=basePath%>user/logout",
				{"token":ticket},
				function (data) {
					
					window.location.reload();
				},
				"json"
			);
			
		}
		
	</script> --%>
    </header>